package org.llc.authorization.mapper;


import org.springframework.stereotype.Repository;
import org.llc.common.starter.model.UserAccount;

/**
 * 用户账户Mapper
 *
 * @author llc
 * @date 2020/1/15 17:04
 * @since 1.0.0
 */
@Repository
public interface UserAccountMapper {

    /**
     * 根据用户名或手机号查询用户账户
     *
     * @param username 用户名或手机号
     * @return org.llc.authorization.model.UserAccount
     * @author llc
     * @date 2020/1/15 17:26
     */
    UserAccount selectByUserName(String username);

    /**
     * 根据手机号查询用户账户
     *
     * @param phone 手机号
     * @return org.llc.authorization.model.UserAccount
     * @author llc
     * @date 2020/1/15 17:26
     */
    UserAccount selectByPhone(String phone);

    /**
     * 查询用户账户信息
     * @param accountId  用户账户UD
     * @return org.llc.common.model.UserAccount
     * @author llc
     * @date 2020/5/22 15:46
     */
    UserAccount selectById(String accountId);
}


